/*
 * @Description: 
 * @FilePath: /Area-cpp/src/calculator.h
 * @Author: Wei Zhou
 * @Github: https://github.com/muyi2414
 * @Date: 2019-09-20 19:47:33
 * @LastEditors: Wei Zhou
 * @LastEditTime: 2020-02-28 20:13:58
 * @Copyright: Copyright © 2017 muyiro. All rights reserved.
 */

#pragma once

#include <string>
#include <memory>

/******************************************************************************
    Calculator
******************************************************************************/
class Calculator
{
public:
    Calculator();
    ~Calculator();
    void setFormula(std::string &str);
    bool count(double &result);

private:
    class impl;
    std::unique_ptr<impl> _pimpl;
};
